import {httpInstance} from "@/api/index";
import {postConfig,getConfig} from '@/lib/RequestBuilder'


const role_prefix = "/sys_role_menu";


export const getMenuIdsByRoleId = (param) => {
    let config = getConfig(role_prefix+"/getMenuIdsByRoleId",param);
    return httpInstance.request(config)
}


export const updateMenuForRole = (param) =>{
    let config = postConfig(role_prefix+"/updateMenuForRole",param);
    return httpInstance.request(config)
}